package com.foxchen.ddns.service.impl.v6;

import com.foxchen.ddns.service.IpGetServiceV6;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Slf4j
@Component("https://icanhazip.com")
public class IcanhazipServiceImpl extends V6IpGetAbsService implements IpGetServiceV6 {

    @Value("${spring.profiles.active}")
    private String profileActive;

    @Override
    String getProfileActive() {
        return profileActive;
    }

    @Override
    public String getIp(String url) {
        return super.getIp(url);
    }
}
